# names = ["Bob","JOHN","alice","bob","ALICE","james","Bob","JAMES","jAMes"]
# name_data = set()
# for item_name in names:
#     name_data.add(item_name[0].upper() + item_name[1:].lower())
# print("name_data: {}".format(name_data))
# print("-----"*20)


# new_names = {n[0].upper + }

# sentence = input("请输入英文句子")
#
# words = sentence.lower().split()
#
# word_count = {}
# for word in words:
#   if word in word_count:
#     word_count[word] = word_count[word] + 1
#   else:
#     word_count[word] = 1
#
# sorted_keys = sorted(word_count.keys())
# sorted_word_count = {key:word_count[key] for key in sorted_keys}
#
# print(sorted_word_count)

#

employees={
  "张工":{"部门":"技术部","薪资":8000},
  "李姐":{"部门":"财务部","薪资":6500},
  "王哥":{"部门":"技术部","薪资":9500},
  "刘妹":{"部门":"人事部","薪资":7000}
}
for name, info in employees.items():
  if info['部门'] == "技术部":
    info["薪资"] = info["薪资"] * 1.1
  else:
    info["薪资"] =info["薪资"] * 1.05
for name,info in employees.items():
  print(f"姓名: {name},部门:{info['部门']},调整后薪资:{info['薪资']:.2f}元")#
# def count_and_sort_words(text):
#     punctuation = ',.!?;:""''()[]{}'
#     cleaned_text = ''
#     for char in text:
#         if char not in punctuation:
#             cleaned_text += char
#     words = cleaned_text.lower().split()
#
#     word_freq = {}
#     for word in words:
#         if word in word_freq:
#             word_freq[word] += 1
#         else:
#             word_freq[word] = 1
#     sorted_word_freq = sorted(word_freq.items(), key=lambda x: x[1], reverse=True)
#     return sorted_word_freq
#
# input_text = "Hello world Hello Python Python is great, and Python is fun"
# result = count_and_sort_words(input_text)
# print(result)

# sentence = input("请输入英文句子")
#
# words = sentence.lower().split()
#
# word_count = {}
# for word in words:
#   if word in word_count:
#     word_count[word] = word_count[word] + 1
#   else:
#     word_count[word] = 1
#
# sorted_keys = sorted(word_count.keys())
# sorted_word_count = {key:word_count[key] for key in sorted_keys}
#
# print(sorted_word_count)